<?php
namespace Home\Controller;
/**
 * 支付返回操作
 * User: linkwhy
 * Date: 2015/10/28
 * Time: 10:59
 */
class PayBackController extends HomeController{
    public function index(){
        //参数　order_id：商城提交时的订单id
        //      seller_id:商城点商店铺id
        $order_id = I('get.order_id');
        //M('order')->where(array('order_id' => $order_id))->save(array('order_status' => 2, 'pay_time' => time()));
        $this->assign('order_id', $order_id);
        $this->display();
    }

//    public function updateStatus(){
//        $order_id = I('post.order_id');
//        M('order')->where(array('order_id' => $order_id))->save(array('order_status' => 1, 'pay_time' => time()));
//        $this->ajaxReturn(array('status' => true, 'url' => U('index', array('order_id' => $order_id))));
//    }
}